package com.bosssoft.handler;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor //所有参数的构造方法
@NoArgsConstructor  //无参的构造方法
public class BusinessException extends RuntimeException{

    @ApiModelProperty(value="状态码")
    private Integer code;

    @ApiModelProperty(value = "错误信息")
    private String errMsg;


}
